package com.gqzm.iaas.enums;

import lombok.Getter;

/**
 * @ClassName: {@link ErrorCode}
 * @description: 错误码
 * @author: peter qin
 * @date: 2023 07 14
 * @version: 1.0
 **/
@Getter
public enum ErrorCode {
    SUCCESS("00000000","操作成功"),
    DATA_NOT_FOUND("00000001", "数据不存在"),
    ADMIN_ACTION_ERROR("00000002", "当前操作仅管理员有权限"),
    FILE_ALREADY_EXISTS("00000003","文件已存在"),
    FILE_NAME_REPEAT("00000004","文件或文件夹名称重复"),
    RECORD_REPEAT("10001000","数据记录已存在"),
    AUTH_FAILED("10001001","授权校验失败"),
    BASE_FAILED("99999999","操作失败"),
    ;
    private final String errorCode;
    private final String message;
    ErrorCode(String errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

}
